<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

    <!--link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" /-->

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>

	<?php //Yii::app()->bootstrap->register(); ?>
	<style>
		div.portlet-decoration {
			color: #693873;
			background-color: #E4DCE6;
			/*background: #c9de96;
			background: -moz-linear-gradient(top,  #c9de96 0%, #8ab66b 44%, #398235 100%); 
			background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c9de96), color-stop(44%,#8ab66b), color-stop(100%,#398235)); 
			background: -webkit-linear-gradient(top,  #c9de96 0%,#8ab66b 44%,#398235 100%);
			background: -o-linear-gradient(top,  #c9de96 0%,#8ab66b 44%,#398235 100%); 
			background: -ms-linear-gradient(top,  #c9de96 0%,#8ab66b 44%,#398235 100%); 
			background: linear-gradient(to bottom,  #c9de96 0%,#8ab66b 44%,#398235 100%);
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9de96', endColorstr='#398235',GradientType=0 ); */
			padding: 10px 15px;
			border-bottom: 3px solid #ebebeb;
			border-top-right-radius: 3px;
			border-top-left-radius: 3px;
			
		}
		div.portlet-title {
			font-size:16px;
			text-shadow: 0 1px #ffffff, 0 1px #7bb8b3;
		}

		ul.sidebar {
			margin:0px;
		}

		ul.sidebar li{
			position: relative;
			display: block;
			padding: 10px 15px;
			margin-bottom: -1px;
			background-color: #ffffff;
			border: 1px solid #dddddd;
			font-size:12.5px;
			line-height:12px;
		}
		
		.sidebar-nav {
			padding: 9px 0;
		  }
		a:hover {
			color: #9429A9;
			text-decoration: none;
		}
	</style>
</head>

<body>

<?php $this->widget('bootstrap.widgets.TbNavbar',array(
    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.TbMenu',
            'items'=>array(
                array('label'=>'Login', 'url'=>array('/user/login'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'SignUp', 'url'=>array('/user/registration'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>Yii::app()->user->name, 'url'=>'#', 'visible'=>!Yii::app()->user->isGuest, 'items'=>array(
					
					array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout')),
				)),
            ),
        ),
    ),
)); ?>

<div class="container" id="page" style="margin-top:80px;">

	<?php if(isset($this->breadcrumbs)):?>
		<?php 
			if(!Yii::app()->user->isGuest){
			$this->widget('bootstrap.widgets.TbBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
			)); 
			}
		?><!-- breadcrumbs -->
	<?php endif?>
	<div class="panel panel-default">
		<div class="panel-body"> 
			<?php echo $content; ?>
		</div>
	</div>
	
	<div class="clear"></div>

	<div id="footer" style="text-align: center;padding: 20px 0 20px;color:#000000">
		Copyright &copy; <?php echo date('Y'); ?> by biobie.net.
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
